/*
 * Copyright (c) 2017.
 * @author fff
 * 17-10-23 下午4:23
 *
 */

package com.cpit.qualitycontrol.dao;

import com.cpit.qualitycontrol.entity.CooperatorStaffer;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author Hulunliang
 * @since 2017/11/4
 */
public interface CooperatorStafferRepository extends JpaRepository<CooperatorStaffer, Long> {
    Page<CooperatorStaffer> findByNameContainingAndCompanyNameContaining(String name, String companyName, Pageable pageable);
    CooperatorStaffer findByMobile(String mobile);
    CooperatorStaffer findByEmail(String email);
}
